package com.wechat.api;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
@PropertySources({
		@PropertySource("classpath:wxconfig.properties"),
		@PropertySource("classpath:system.properties")
})
@ComponentScan(basePackages = "com.wechat.api")
@MapperScan(basePackages = "com.wechat.api")
public class WechatapiApplication {

	private static Logger logger = LoggerFactory.getLogger(WechatapiApplication.class);

	public static void main(String[] args) {
		SpringApplication.run(WechatapiApplication.class, args);
		logger.info("***********微信API服务系统启动***********");
	}
}
